﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IPC.Communication.WebSocket
{
    public class WebSocketMessage
    {
	    public bool HasMask
	    {
		    get;
		    set;
	    }

	    public int OpCode
	    {
		    get;
		    set;
	    }

	    public byte[] Payload
	    {
		    get;
		    set;
	    }

	    public override string ToString()
	    {
            return String.Format("OpCode[{0}] HasMask[{1}] Payload: {2}", OpCode, HasMask, Encoding.UTF8.GetString(Payload));
	    }
    }
}
